using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using RetailAnalytic.Core;
namespace RetailAnalytic.Shell.UI.Administration
{
    public partial class frmPwd : frmTemplate
    {
        public string sPWD = String.Empty;
        //public usr _ucurr;
        public frmPwd()
        {
            InitializeComponent();
        }

        private void ultraButton1_Click(object sender, EventArgs e)
        {
            if (usr_pwd.Text == usr_pwd1.Text)
            {
                sPWD = ModuleSupport.Encrypt(usr_pwd.Text);
                Close();
            }
            else
            {
                Dialog.Show(Dialog_type.Error, SR.StringLibrary.GetStrMSG(SR.StringLibrary.KeyEnum.Error_PWD_NO_EQUAL_REPEAT,
                    Environment.StackTrace, ""));
                sPWD = String.Empty;
                usr_pwd.Text = String.Empty;
                usr_pwd1.Text = String.Empty;
            }

        }

        private void ultraButton2_Click(object sender, EventArgs e)
        {
            sPWD = String.Empty;
            this.Close();
        }
    }
}